package com.miplus.ccrm.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.miplus.ccrm.admin.controller.vo.*;
import com.miplus.ccrm.admin.pojo.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.miplus.ccrm.common.CmdResVo;
import com.miplus.ccrm.common.EnumRCode;

import java.util.List;

/**
* @author pc
* @description 针对表【sys_user(系统用户表)】的数据库操作Service
* @createDate 2024-02-22 20:28:53
*/
public interface SysUserService extends IService<SysUser> {

    UserSignInResVo doSignIn(UserSignInReqVo userSignInReqVo,String reqIpAddr);

    EnumRCode doSignDown(String token);

    UserInfoResVo quyUserInfo(String usrid,boolean isedit);

    IPage<UserInfoResVo> systemUserSelect(UserInfoReqVo paras, String usrid);

    CmdResVo updateUser(String userid, UserEditReqVo paras);

    CmdResVo deleteUser(String userid,UserIDReqVo paras);

    CmdResVo insertUser(String userid,UserEditReqVo paras);

    CmdResVo resetPassword(String userid,UserReqVo paras);

    CmdResVo updatePwd(String userid,UserUpdatePwdVo paras);

    CmdResVo updateStatus(String userid,UserReqVo paras);

    List<NamesResVo> getActiveUserList(String grpid);
    List<GrpUserResVo> groupUserList(String userid);
}
